package com.xj.bean;

import com.xj.bean.aop.MathCalculator;
import com.xj.config.MainConfigOfAOP;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class MainTest {

    public static void main(String[] args) throws Exception {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MainConfigOfAOP.class);

        MathCalculator calculator = context.getBean(MathCalculator.class);
        int div = calculator.div(3, 1);


        System.out.println("运行了容器");
    }
}
